package de.uni_saarland.coli.doclists;

import de.uni_saarland.coli.doclists.document.iterator.DocumentIteratorCustomCorpus;
import de.uni_saarland.coli.doclists.index.Index;

public class BuildIndex {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Index.initializeMemoryIndex();

		DocumentIteratorCustomCorpus iter = new DocumentIteratorCustomCorpus(
				args[0]);
		
		Index.indexDocuments(iter);

		Index.instance().save(args[1], "index");
		System.out.println(Index.getEdgeMap());
	}

}
